package com.tanhua.dubbo.api;

import com.easemob.im.server.EMProperties;
import com.easemob.im.server.EMService;

public class HuanxinDemoTest01 {

    public static void main(String[] args) {
        EMProperties properties = EMProperties.builder()
                .setAppkey("1138220317114990#demo")
                .setClientId("YXA6jDkGqkHzTnu7GXF-vnJixg")
                .setClientSecret("YXA6nV2MKXoCxonBNV-yM9d9NwOwRg0").build();
        EMService service = new EMService(properties);

        //将用户信息注册到环信
        service.user().create("user01","123456").block();

    }

}
